package Singleton;

import java.io.File;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Locale;
import java.util.ResourceBundle;

import calendar.Event;

public class Application {

	static String title = "";
	
	static Init init = null;
	static String contextPath = null;
	static File xml = null;
	static File localisation = null;
	static ArrayList<Event> events = null;

	
	public static void init() {
		if (init == null) {
			init = new Init();
		}
		init.initialization();
	}
	public static File getXml() {
		if (xml == null) {
			xml = new File(contextPath+"\\data\\test.xml");
		}
		return xml;
	}
	public static ArrayList<Event> getEvents() {
		return events;
	}

	public static void setEventList(ArrayList<Event> eventlist) {
		events = eventlist;
	}

	public static void setTitle(String str) { title = str; }
	public static String getTitle() { return title; }
	public static void setContextPath(String contextPath) { Application.contextPath = contextPath; }

}
